package com.wjhs.redispractice.accesslimit.controller;

import com.wjhs.redispractice.accesslimit.annotation.AccessLimit;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AccessLimitController {

    @RequestMapping("limit")
    @AccessLimit(seconds = 5, maxCount = 3, msg = "您操作频率太过频繁，稍后再试")
    public String accessLimit() {
        return "ok";
    }
}
